home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12432 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: pelican.cs.ucla.edu!scottm
  2. From: scottm@pelican.cs.ucla.edu (Scott Michel)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: HELP !!(RAISE A NUMBER TO A NEGATIVE POWER)
  5. Date: 20 Mar 1996 00:18:05 GMT
  6. Organization: UCLA CS Dept
  7. Message-ID: <4inirt$3rk@delphi.cs.ucla.edu>
  8. References: <4hlqve$26t@dub-news-svc-6.compuserve.com> <Dnx1Bu.pp@research.att.com>
  9. NNTP-Posting-Host: pelican.cs.ucla.edu
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Andrew Koenig (ark@research.att.com) wrote:
  13. : In article <4hlqve$26t@dub-news-svc-6.compuserve.com> <102627.3053@compuserve.com> writes:
  14.  
  15. : > IM TRYING TO CREATE A FUNCTION THAT WILL:
  16. : > 1.)  RAISE A NUMBER TO A POWER BOTH POSITIVE AND NEGATIVE.
  17. : > ALSO 0 TO ANY POWER WOULD REPORT 0 AND THAT ANY NUMBER TO 
  18. : > THE 0 POWER IS ONE.
  19. : > 2.)  DO THE SAME USING A RECURSIVE FUNCTION.
  20.  
  21. : Asking someone else to do your homework for you
  22. : is usually considered plagiarism; when I was in
  23. : school, it was cause for expulsion.
  24.  
  25. It also sounds like someone needs to pay more attention to
  26. basic algebra and functions.
  27.  
  28. Of course, they still taught that when I went to high school
  29. not all that long ago.
  30.  
  31. -scottm
  32.